package com.bite.demo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public enum ResultCodeEnum {
    //成功  200
    //失败   -1
    //后端发送异常 --可以分类、
    //数据库异常 -2
    //参数异常  -3
    SUCCESS(200,"成功"),
    NOLOGIN(-1,"未登录"),
    FAIL(-2,"参数错误"),
    ;
    @Getter
    private int code;
    @Getter
    private String name;

}
